#include"line_list.h"

void Test1(){
	SL sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 10);
	SeqListPushBack(&sl, 20);
	SeqListPushBack(&sl, 30);
	SeqListPushBack(&sl, 40);
	SeqListPushBack(&sl, 50);
	SeqListPrint(&sl);

	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPrint(&sl);

	SeqListPushFront(&sl, 1);
	SeqListPushFront(&sl, 2);
	SeqListPushFront(&sl, 3);
	SeqListPushFront(&sl, 4);
	SeqListPrint(&sl);

	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPrint(&sl);
	SeqListInsert(&sl, 3, 666);
	SeqListInsert(&sl, 4, 777);
	SeqListInsert(&sl, 5, 666);
	SeqListPrint(&sl);
	SeqListErase(&sl, 5);
	SeqListErase(&sl, 4);
	SeqListPrint(&sl);

	SeqListDestory(&sl);
}

int main() {
	Test1();

	return 0;
}